package com.muyu;

import com.muyu.service.UserService;
import com.spring.MuyuApplicationContext;

public class Test {
    public static void main(String[] args) {
        MuyuApplicationContext applicationContext = new MuyuApplicationContext(AppConfig.class);
        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));
        UserService userService = (UserService) applicationContext.getBean("userService");
        System.out.println(userService.getOrderService());
        System.out.println(userService.getBeanName());
    }
}
